package sn.gandal.mobile.kalpet.data.entities;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;


@DatabaseTable(tableName="credentials")
public class Credentials {
	
	public static final String NUMERO_CLIENT="NUMERO_CLIENT";
	public static final String CODE_SECRET="CODE_SECRET";
	public static final String ACCOUNT="account";
	public static final String ID="ID";
	
	@DatabaseField(generatedId=true, columnName=ID)
	public int id;
	@DatabaseField(canBeNull=false, columnName= NUMERO_CLIENT )
	public String numeroClient;
	@DatabaseField(canBeNull=false, columnName= CODE_SECRET )
	public String codeSecret;

	@DatabaseField(canBeNull= true,foreign = true, columnName=ACCOUNT, foreignAutoCreate=true)	
	public Account account;
	
	public Credentials(){
		
	}
	public String getNumeroClient() {
		return numeroClient;
	}

	public void setNumeroClient(String numeroClient) {
		this.numeroClient = numeroClient;
	}

	public String getCodeSecret() {
		return codeSecret;
	}

	public void setCodeSecret(String codeSecret) {
		this.codeSecret = codeSecret;
	}

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	

}
